var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.dispose();
            cm.onSetMapObjectMove("attack", [1, 0, 0]);
            cm.onSetMapObjectMove("attackAll", [1, 0, 0]);
            cm.monadForceMove("giantHit1", 0, 0);
            cm.monadForceMove("giantHit2", 0, 0);
            cm.monadForceMove("giantHit3", 0, 0);
            cm.monadForceMove("giantHit4", 0, 0);
            cm.monadForceMove("giantHit5", 0, 0);
            cm.monadForceMove("giantHit6", 0, 0);
            cm.monadForceMove("giantHit7", 0, 0);
            cm.monadForceMove("giantHit8", 0, 0);
            cm.monadForceMove("giantHit9", 0, 0);
            cm.monadForceMove("giantHit10", 0, 0)
        }
    }
};